package entity;

import lombok.Data;

import java.io.Serializable;

@Data
public class MoveSpeed implements Serializable {

	private static final long serialVersionUID = 6074031771887668877L;
	private int speed;
	private int time;
	
	public MoveSpeed(int x, int time) {
		this.speed = x;
		this.time = time;
	}

	public int getSpeed() {
		return (int) (speed / time);
	}

	public void setSpeed(int speed) {
		this.speed = speed;
	}

	public int getTime() {
		return time;
	}

	public void setTime(int time) {
		this.time = time;
	}
	

}
